package edu.yctc.weblog.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import edu.yctc.weblog.entity.CommentDO;

@Mapper
public interface CommentDAO {

    void insert(CommentDO commentDO);

    void deleteById(Long id);

    void update(CommentDO commentDO);

    CommentDO getCommentDOById(Long id);

    List<CommentDO> getBlogCommentList(Map<String, Object> map);

    int getTotalBlogComments(Map<String, Object> map);

    void checkDone(Long[] ids);

    void deleteBatch(Long[] ids);

    void reply(CommentDO commentDO);

    void comment(CommentDO commentDO);

}